<?php
if (!defined("ACCESS"))
    die("Access denied");
?>

<script type="text/javascript">
    $(function() {
        $('#gallery').dataTable();
    });
</script>

<?php
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$sql = "select * from tbl_gallery";
$result = mysql_query($sql);

echo "<table id='gallery' class='table table-bordered'>";
echo "<thead>
    <th>1</th>
    <th>2</th>
    
    </thead><tbody>";
while ($row = mysql_fetch_object($result)) {
    echo "<tr>"
    . "<td>$row->id</td>"
    . "<td>$row->pathfile</td>"
    . "</tr>";
}
echo "</tbody></table>";
?>

